//#define _CRT_SECURE_NO_WARNINGS
//#define PI 3.1415926
//#define IRON 7.86
//#define GOLD 19.3
//
//#include<stdio.h>
//#include<math.h>
//
//int main()
//{
//	float iron_dia = 0;
//	float gold_dia = 0;
//	scanf("%f %f", &iron_dia, &gold_dia);
//	float iron_density = IRON * (4.0 / 3) * pow((iron_dia / 2) / 10, 3) * PI;
//	float gold_density = GOLD * (4.0 / 3) * pow((gold_dia / 2) / 10, 3) * PI;
//	printf("%.3f  %.3f\n", iron_density, gold_density);
//	
//	return 0;
//}
//
